package com.zoro.barn.business.service.pp.business.project.dao;

import com.zoro.barn.business.service.pp.business.project.entity.BarnProject;
import com.zoro.barn.business.service.pp.business.project.entity.BarnProjectUser;
import com.zoro.barn.commons.db.annotations.MybatisMapper;
import com.zoro.barn.commons.db.annotations.NeedPage;

import java.util.List;

/**
 * @author zhaoxingwu
 */
@MybatisMapper
public interface BarnProjectMapper {

    BarnProject selectById(String id);
    void insert(BarnProject project);
    int updateById(BarnProject barnProject);

    @NeedPage
    List<BarnProject> query(BarnProjectUser barnProject);
}
